package cn.sciento.farm.devicemanager.dao.mapper;

import cn.sciento.farm.devicemanager.dao.entity.DevCollectionHistory;
import cn.sciento.farm.devicemanager.dao.model.CollectionNode;
import cn.sciento.farm.devicemanager.dao.model.HistoryGetData;
import cn.sciento.farm.devicemanager.dao.model.HistoryGetForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wumu
 * @since 2019-06-10
 */
public interface CollectionHistoryMapper extends BaseMapper<DevCollectionHistory> {

    List<CollectionNode> getBetweenHistory(@Param("collectionId") long collectionId,
                                           @Param("beginTime") Long beginTime, @Param("endTime")Long endTime);

    List<HistoryGetData> getHistoryList(@Param("params") HistoryGetForm historyGetForm);

    List<HistoryGetData> getMonthHistory(@Param("params")HistoryGetForm historyGetForm);
}
